package com.microblog.microblogsystem.service;

import com.microblog.microblogsystem.domain.dto.BlogPageQueryDTO;
import com.microblog.microblogsystem.domain.po.Blog;
import com.baomidou.mybatisplus.extension.service.IService;
import com.microblog.microblogsystem.domain.vo.BlogReadVO;
import com.microblog.microblogsystem.result.PageResult;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author itlxc
 * @since 2024-06-28
 */
public interface BlogService extends IService<Blog> {

    /**
     * 分页查询博客信息
     * @param blogPageQueryDTO
     * @return
     */
    PageResult pageQuery(BlogPageQueryDTO blogPageQueryDTO);

    /**
     * 用户点赞博客
     * @param bid
     */
    void like(Long bid);

    /**
     * 阅读博客文章
     * @param bid
     * @return
     */
    BlogReadVO read(Long bid);
}
